﻿using UnityEngine;
using System.Collections;
using System;

public class ColliderEnterTrigger : MonoBehaviour {

	public Action callback;

	void OnTriggerEnter(Collider collider)
	{
		//进入触发器执行的代码
		Debug.Log("OnTriggerEnter: " + collider.name);

		if(callback != null)
			callback.Invoke ();
	}
}
